package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClientProfileMapper;
import com.ruoyi.system.domain.ClientProfile;
import com.ruoyi.system.service.IClientProfileService;

/**
 * 用户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
@Service
public class ClientProfileServiceImpl implements IClientProfileService 
{
    @Autowired
    private ClientProfileMapper clientProfileMapper;

    /**
     * 查询用户信息
     * 
     * @param profileId 用户信息主键
     * @return 用户信息
     */
    @Override
    public ClientProfile selectClientProfileByProfileId(Long profileId)
    {
        return clientProfileMapper.selectClientProfileByProfileId(profileId);
    }

    /**
     * 查询用户信息列表
     * 
     * @param clientProfile 用户信息
     * @return 用户信息
     */
    @Override
    public List<ClientProfile> selectClientProfileList(ClientProfile clientProfile)
    {
        return clientProfileMapper.selectClientProfileList(clientProfile);
    }

    /**
     * 新增用户信息
     * 
     * @param clientProfile 用户信息
     * @return 结果
     */
    @Override
    public int insertClientProfile(ClientProfile clientProfile)
    {
        return clientProfileMapper.insertClientProfile(clientProfile);
    }

    /**
     * 修改用户信息
     * 
     * @param clientProfile 用户信息
     * @return 结果
     */
    @Override
    public int updateClientProfile(ClientProfile clientProfile)
    {
        return clientProfileMapper.updateClientProfile(clientProfile);
    }

    /**
     * 批量删除用户信息
     * 
     * @param profileIds 需要删除的用户信息主键
     * @return 结果
     */
    @Override
    public int deleteClientProfileByProfileIds(Long[] profileIds)
    {
        return clientProfileMapper.deleteClientProfileByProfileIds(profileIds);
    }

    /**
     * 删除用户信息信息
     * 
     * @param profileId 用户信息主键
     * @return 结果
     */
    @Override
    public int deleteClientProfileByProfileId(Long profileId)
    {
        return clientProfileMapper.deleteClientProfileByProfileId(profileId);
    }
}
